//package com.xqboss.web.controller.nft;
//
//
//import com.xqboss.apps.domain.marketing.MarketingRightsCard;
//import com.xqboss.apps.domain.marketing.vo.MarketingRightsCardVO;
//import com.xqboss.apps.domain.sys.SysTag;
//import com.xqboss.apps.service.marketing.MarketingRightsCardService;
//import com.xqboss.apps.service.marketing.SysTagService;
//import com.xqboss.common.annotation.Log;
//import com.xqboss.common.core.controller.BaseController;
//import com.xqboss.common.core.domain.AjaxResult;
//import com.xqboss.common.core.domain.R;
//import com.xqboss.common.core.page.TableDataInfo;
//import com.xqboss.common.enums.BusinessType;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
///**
// * 营销权益Controller
// *
// * @author xqboss
// * @date 2023-08-11
// */
//@RestController
//@RequestMapping("/web/marketing")
//public class WebMarketingRightsCardController extends BaseController {
//    @Autowired
//    private MarketingRightsCardService marketingRightsCardService;
//    @Autowired
//    private SysTagService sysTagService;
//
//    /**
//     * 查询营销权益列表
//     */
//    @GetMapping("/list")
//    public R<List<MarketingRightsCardVO>> list(MarketingRightsCard marketingRightsCard) {
//        startPage();
//        List<MarketingRightsCardVO> list = marketingRightsCardService.selectMarketingRightsCardList(marketingRightsCard);
//        return R.ok(list);
//    }
//
//    /**
//     * 导出营销权益列表
//     */
////    @Log(title = "营销权益", businessType = BusinessType.EXPORT)
////    @PostMapping("/export")
////    public void export(HttpServletResponse response, MarketingRightsCard marketingRightsCard) {
////        List<MarketingRightsCard> list = marketingRightsCardService.selectMarketingRightsCardList(marketingRightsCard);
////        ExcelUtil<MarketingRightsCard> util = new ExcelUtil<MarketingRightsCard>(MarketingRightsCard.class);
////        util.exportExcel(response, list, "营销权益数据");
////    }
//
//    /**
//     * 获取营销权益详细信息
//     */
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id) {
//        return success(marketingRightsCardService.selectMarketingRightsCardById(id));
//    }
//
//    /**
//     * 新增营销权益
//     */
//    @Log(title = "营销权益", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody MarketingRightsCard marketingRightsCard) {
//        return toAjax(marketingRightsCardService.insertMarketingRightsCard(marketingRightsCard));
//    }
//
//    /**
//     * 修改营销权益
//     */
//    @Log(title = "营销权益", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody MarketingRightsCard marketingRightsCard) {
//        return toAjax(marketingRightsCardService.updateMarketingRightsCard(marketingRightsCard));
//    }
//
//    /**
//     * 删除营销权益
//     */
//    @Log(title = "营销权益", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable Long[] ids) {
//        return toAjax(marketingRightsCardService.deleteMarketingRightsCardByIds(ids));
//    }
//
//    /**
//     * 查询标签列表
//     */
//    @ApiOperation(value = "查询标签列表v23.8.8.2")
//    @GetMapping("/tag-list")
//    public R<List<SysTag>> list(SysTag sysTag) {
//        startPage();
//        List<SysTag> list = sysTagService.findSysTagList(sysTag);
//        return R.ok(list);
//    }
//}
//
